package com.company.project.demo.common.enumserror;


import com.base.common.enums.ErrorEnum;

/**
 * @Description 会员错误码
 * @Author zhongbo.yu
 * @Date 2021/12/28
 */
public enum MemberErrorEnum implements ErrorEnum {

    /**
     * 请重新登录
     */
    NO_LGOIN("EMEMBER-A10001", "请重新登录！", "请先登录"),
    ;

    /**
     * 错误码
     */
    private String code;
    /**
     * 错误信息
     */
    private String codeMsg;
    /**
     * 错误描述
     */
    private String desc;

    MemberErrorEnum(String code, String codeMsg, String desc) {
        this.code = code;
        this.codeMsg = codeMsg;
        this.desc = desc;
    }

    /**
     * 获取Code
     *
     * @return
     */
    @Override
    public String getCode() {
        return this.code;
    }

    /**
     * 获取CodeMsg
     *
     * @return
     */
    @Override
    public String getCodeMsg() {
        return this.codeMsg;
    }

    /**
     * 获取Desc
     *
     * @return
     */
    @Override
    public String getDesc() {
        return this.desc;
    }
}
